package com.cloud.bean.coupon;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuyuan
 * @since 2022-08-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("c_batch_coupon")
public class BatchCoupon extends Model<BatchCoupon> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 批次编码
     */
    private String batchCode;

    /**
     * 优惠卷标题
     */
    private String title;

    /**
     * 优惠券的名称
     */
    private String name;

    /**
     * 关联可用商品
     */
    @TableField("skuId")
    private String skuId;

    /**
     * 数量
     */
    private Long amount;

    /**
     * 面额
     */
    private String denomination;

    /**
     * 优惠卷的类型
     */
    private String type;

    /**
     * CREATE创建状态、ACTIVE有效、UNACTIVE无效
     */
    private String status;

    /**
     * 商户号
     */
    private String customerOn;

    /**
     * 创建人的id
     */
    private Long operatorId;

    private LocalDateTime createDate;

    private LocalDateTime updateDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
